package net.form.filters;


public class Record {
	
	private String name;
	
	private Double quantity = 0.0;
	
	private Double area = 0.0;
	
	private Double percentage = 0.0;
	
	public Record() {
		super();
	}

	public Record(String name, Double quantity, Double area,
			Double percentage) {
		super();
		this.name = name;
		this.quantity = quantity;
		this.area = area;
		this.percentage = percentage;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getQuantity() {
		return quantity;
	}

	public void setQuantity(Double quantity) {
		this.quantity = quantity;
	}

	public Double getArea() {
		return area;
	}

	public void setArea(Double area) {
		this.area = area;
	}

	public Double getPercentage() {
		return percentage;
	}

	public void setPercentage(Double percentage) {
		this.percentage = percentage;
	}

	public boolean equals(Object o) {
		if (o == null)
			return false;
		if (!(o instanceof Record))
			return false;
		Record c = (Record) o;
		if (getName() != null)
			return getName().equals(c.getName());
		return false;
	}

	public String toString() {
		return getName();
	}

}

